﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SuedeTest.Core.Actions {
   [Serializable]
   public class SerializedAction {

      public string String1;
      public string String2;
      public string String3;

      public SerializedAction (EventAction a) {
         String1 = a.UnambiguousName;
         String2 = a.MethodName;
         String3 = a.ArgsAsString;
      }

      public SerializedAction (ListViewItemWatchAction a) {
         String1 = a.ListViewWatchData;
         String2 = "ListViewWatch";
         String3 = "";
      }

      public SerializedAction(PropertyAssertAction a) {
         String1 = a.Control;
         String2 = "Assert_AreEqual";
         String3 = a.ExpectedValue;
      }
   }
}
